<template>
  <div class="home">
    <main>
      <router-view></router-view>
    </main>
    <footer>
       <router-link to="/home/list">首页</router-link>
       <router-link to="/home/cart">购物车</router-link>
       <router-link to="/home/about">我的</router-link>
    </footer>
  </div>
</template>

<script>
export default {
  
};
</script>

<style lang='scss'>
.home{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
main{
  flex: 1;
  overflow-y: scroll;
}
footer{
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  border-top: 1px solid #eee;
  justify-content: space-around;
}
.router-link-active{
  color: #f00;
}
</style>